/** @format */

export enum ComponentsType {
  'Input' = 'Input',
  'Textarea' = 'Textarea',
  'Select' = 'Select',
  'Button' = 'Button',
}

export const theComponentsTypeArr = [
  ComponentsType.Input,
  ComponentsType.Textarea,
  ComponentsType.Select,
  ComponentsType.Button,
]

export const componentsConfig = {
  [ComponentsType.Input]: {
    type: 'Input',
    label: '输入框',
    icon: 'icon-input',
    options: {
      placeholder: '请输入',
      disabled: false,
      clearable: false,
      showPassword: false,
      prefixIcon: '',
      suffixIcon: '',
      size: 'medium',
      maxlength: undefined,
      showWordLimit: false,
    },
  },
}
